package com.demo2.controller;

import com.demo2.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class UserController {

    @Autowired
    @Qualifier(value = "user1")
    private User user;


}
